package com.aiyige.model;

import android.text.TextUtils;

/**
 * Created by xiachao on 2017/12/4.
 */

public class ViewEntity {

    private long id;
    private long goodsId;
    private int version;

    private int goodsType;
    private String detail;
    private String cover;
    private String title;
    private float price;
    private long categoryId;
    private long createTime;
    private int salesNum;
    private int videosNum;
    private int status;
    private long totalDuration;

    public String getRouter() {
        return router;
    }

    public void setRouter(String router) {
        this.router = router;
    }

    private String router;

    public boolean isShowTypeNameLayout() {
        return showTypeNameLayout;
    }

    public void setShowTypeNameLayout(boolean showTypeNameLayout) {
        this.showTypeNameLayout = showTypeNameLayout;
    }

    private boolean showTypeNameLayout;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    private String  typeName;

    public int getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(int goodsType) {
        this.goodsType = goodsType;
    }

    public String getOwner() {
        return TextUtils.isEmpty(owner)?"":owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getOwnerAvatar() {
        return TextUtils.isEmpty(ownerAvatar)?"":ownerAvatar;
    }

    public void setOwnerAvatar(String ownerAvatar) {
        this.ownerAvatar = ownerAvatar;
    }

    private String owner;
    private String ownerAvatar;

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    private boolean selected = false;

    public String getTitle() {
        return TextUtils.isEmpty(title) ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setCategoryId(long categoryId) {
        this.categoryId = categoryId;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getVersion() {
        return version;
    }

//    public void setType(int type) {
//        this.type = type;
//    }
//
//    public int getType() {
//        return type;
//    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getCover() {
        return cover;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getPrice() {
        return price;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public long getCategoryId() {
        return categoryId;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setSalesNum(int salesNum) {
        this.salesNum = salesNum;
    }

    public int getSalesNum() {
        return salesNum;
    }

    public void setVideosNum(int videosNum) {
        this.videosNum = videosNum;
    }

    public int getVideosNum() {
        return videosNum;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public void setTotalDuration(long totalDuration) {
        this.totalDuration = totalDuration;
    }

    public long getTotalDuration() {
        return totalDuration;
    }
}
